else{
  var cookieStr = document.cookie;
  var start; var end;
  if((start = cookieStr.indexOf("liczba1=")) != -1){
    end = cookieStr.indexOf(";", start + 8);
    if(end == -1) end = cookieStr.length;
    var wartość = cookieStr.substring(start + 8, end);
    str += "Znaleziono cookie odpowiadajace pierwszej liczbie. ";
    str += "Odczytana wartość to " + wartość + ". ";
  }
  else{
    str += "Pierwsza wartość nie mogła być odczytana. ";
  }
  if((start = cookieStr.indexOf("liczba2=")) != -1){
    end = cookieStr.indexOf(";", start + 8);
    if(end == -1) end = cookieStr.length;
    var wartość = cookieStr.substring(start + 8, end);
    str += "Znaleziono cookie odpowiadajace drugiej liczbie. ";
    str += "Odczytana wartość to " + wartość + ". ";
  }
  else{
    str += "Druga wartość nie mogła być odczytana."
  }
}
var dataDiv = document.getElementById("dataDiv");
dataDiv.innerHTML = str;